<%--
  Created by IntelliJ IDEA.
  User: 15c
  Date: 2017/5/28
  Time: 9:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="sf" %>

<html>
<head>
    <title>update</title>
</head>
<body>
<jsp:include page="head.jsp"/>
<div style="height: auto;width: 100%;text-align: center">
    <div style="margin:5% auto">
        <h2>学生信息更新</h2>
        <sf:form action="${pageContext.request.contextPath}/students/update" method="post">
            <p style="font-weight: bold">学号:<input type="text" name="sno" value="${student.sno}" readOnly="true"
                                                   style="margin-top: 2%"/></p>

            <p style="font-weight: bold">姓名:<input type="text" name="sname" value="${student.sname}"
                                                   style="margin-top: 1%" placeholder="${student.sname}"/></p>

            <p style="font-weight: bold">性别:<input type="text" name="ssex" value="${student.ssex}"
                                                   style="margin-top: 1%" placeholder="${student.ssex}"/></p>

            <p style="font-weight: bold">年龄:<input type="text" name="sage" value="${student.sage}"
                                                   style="margin-top: 1%" placeholder="${student.sage}"/></p>

            <p style="font-weight: bold">系别:<input type="text" name="sdept" value="${student.sdept}"
                                                   style="margin-top: 1%" placeholder="${student.sdept}"/></p>

            <p style="font-weight: bold">身份证号:<input type="text" name="sid" value="${student.sid}"
                                                     style="margin-top: 1%" placeholder="${student.sid}"/></p>

            <p style="font-weight: bold">家庭住址:<input type="text" name="saddress" value="${student.saddress}"
                                                     style="margin-top: 1%" placeholder="${student.saddress}"/></p>

            <p style="font-weight: bold">联系电话:<input type="text" name="stelephonenum" value="${student.stelephonenum}"
                                                     style="margin-top: 1%" placeholder="${student.stelephonenum}"/></p>
            <input type="submit" value="提交" style="border:3px solid #ccc;background:#cccccc;margin-top: 1%">
            <a href="${pageContext.request.contextPath}/index"><input type="button" value="取消"
                                                                      style="border:3px solid #ccc;background:#cccccc;margin-left: 2%;margin-top: 1%"></a>
        </sf:form>
    </div>
</div>
</body>
</html>
